# Contributor: Orion <systmkor@gmail.com>
# Maintainer: Orion <systmkor@gmail.com>
pkgname=py3-scrapy
pkgver=2.2.1
pkgrel=0
pkgdesc="Fast high-level scraping and web crawling framework."
url="https://scrapy.org/"
arch="noarch"
license="BSD-3-Clause"
depends="
	python3
	py3-cssselect
	py3-itemadapter
	py3-lxml
	py3-openssl
	py3-parsel
	py3-protego
	py3-pydispatcher
	py3-queuelib
	py3-service_identity
	py3-setuptools
	py3-six
	py3-twisted
	py3-w3lib
	"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/S/Scrapy/Scrapy-$pkgver.tar.gz"
builddir="$srcdir"/Scrapy-$pkgver

replaces="py-scrapy" # Backwards compatibility
provides="py-scrapy=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="94e0d5022741c8ab31976aeb979470ec9f179abe2057e39ae472d026e7fc174f1c37deeeb3672b8dedc2eb17e2a45334becf902eea621b78f1d39e060e160ed9  Scrapy-2.2.1.tar.gz"
